package com.education.course.service.impl;

import java.util.List;
import com.education.common.utils.DateUtils;
import com.education.course.domain.EduCourseSubjectTaskBind;
import com.education.course.mapper.EduCourseSubjectTaskBindMapper;
import com.education.course.service.IEduCourseSubjectTaskBindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author education
 * @date 2024-08-07
 */
@Service
public class EduCourseSubjectTaskBindServiceImpl implements IEduCourseSubjectTaskBindService
{
    @Autowired
    private EduCourseSubjectTaskBindMapper eduCourseSubjectTaskBindMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public EduCourseSubjectTaskBind selectEduCourseSubjectTaskBindById(Long id)
    {
        return eduCourseSubjectTaskBindMapper.selectEduCourseSubjectTaskBindById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param eduCourseSubjectTaskBind 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<EduCourseSubjectTaskBind> selectEduCourseSubjectTaskBindList(EduCourseSubjectTaskBind eduCourseSubjectTaskBind)
    {
        return eduCourseSubjectTaskBindMapper.selectEduCourseSubjectTaskBindList(eduCourseSubjectTaskBind);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param eduCourseSubjectTaskBind 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertEduCourseSubjectTaskBind(EduCourseSubjectTaskBind eduCourseSubjectTaskBind)
    {
        eduCourseSubjectTaskBind.setCreateTime(DateUtils.getNowDate());
        return eduCourseSubjectTaskBindMapper.insertEduCourseSubjectTaskBind(eduCourseSubjectTaskBind);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param eduCourseSubjectTaskBind 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateEduCourseSubjectTaskBind(EduCourseSubjectTaskBind eduCourseSubjectTaskBind)
    {
        eduCourseSubjectTaskBind.setUpdateTime(DateUtils.getNowDate());
        return eduCourseSubjectTaskBindMapper.updateEduCourseSubjectTaskBind(eduCourseSubjectTaskBind);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEduCourseSubjectTaskBindByIds(Long[] ids)
    {
        return eduCourseSubjectTaskBindMapper.deleteEduCourseSubjectTaskBindByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteEduCourseSubjectTaskBindById(Long id)
    {
        return eduCourseSubjectTaskBindMapper.deleteEduCourseSubjectTaskBindById(id);
    }
}
